<template>
  <div id="stopswitchlist" > 


          <el-table :data="list" style="width: 100%" :row-class-name="tableRowClassName" 
           :border="true" :height="dtheight" :header-cell-style="{background:'#4F81BC',color:'white'}"
          >

               
                <el-table-column label="时间"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.time }}</span>
                    </template>
                </el-table-column>
                 <el-table-column label="操作"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span v-if="scope.row.type == 1">开启</span>
                        <span v-if="scope.row.type == 0">关闭</span>
                    </template>
                </el-table-column>
                

            </el-table>  




   </div>
</template>

<script>

export default {
   name: 'stopswitchlist',
   props:{
      list:{  
        //type:Array,
       default:()=>[]
     },
  },
  data () {
    return {
       
    }
  },
   components:{

  },
  created(){
     this.dtheight = window.innerHeight - 240
      
  },
  mounted (){
 
  },
  methods: {
  


  }
}
</script>


<style scoped>

</style>